using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN TrangThaiService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: TrangThaiService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class TrangThaiService : ITrangThaiService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: TrangThai_ID</para>
		/// <para>Output: TrangThaiEntity</para>
		///</summary>
		public TrangThaiEntity SelectOne(int TrangThai_ID){
			TrangThaiDAO dao = new TrangThaiDAO();
			return dao.SelectOne(TrangThai_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaTrangThai</para>
		/// <para>Input: MaTrangThai</para>
		/// <para>Output: TrangThaiEntity</para>
		///</summary>
		public TrangThaiEntity SelectOneByMaTrangThai(string MaTrangThai){
			TrangThaiDAO dao = new TrangThaiDAO();
			return dao.SelectOneByMaTrangThai(MaTrangThai);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TrangThaiEntity</para>
		///</summary>
		public List<TrangThaiEntity> SelectAll(){
			TrangThaiDAO dao = new TrangThaiDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			TrangThaiDAO dao = new TrangThaiDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TrangThaiEntity</para>
		///</summary>
		public List<TrangThaiEntity> SelectAllFilter(string strFilter){
			TrangThaiDAO dao = new TrangThaiDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			TrangThaiDAO dao = new TrangThaiDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: TrangThaiEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(TrangThaiEntity o){
			TrangThaiDAO dao = new TrangThaiDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: TrangThaiEntity</para>
		/// <para>Output: TrangThaiEntity</para>
		///</summary>
		public TrangThaiEntity SaveRet(TrangThaiEntity o){
			TrangThaiDAO dao = new TrangThaiDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of TrangThaiEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<TrangThaiEntity> list){
			TrangThaiDAO dao = new TrangThaiDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of TrangThaiEntity</para>
		/// <para>Output: List of TrangThaiEntity</para>
		///</summary>
		public List<TrangThaiEntity> SaveListRet(List<TrangThaiEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: TrangThaiEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(TrangThaiEntity o){
			TrangThaiDAO dao = new TrangThaiDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of TrangThaiEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<TrangThaiEntity> list){
			TrangThaiDAO dao = new TrangThaiDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaTrangThai</para>
		/// <para>Input: NewMaTrangThai,TrangThai_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaTrangThai(string NewMaTrangThai,int TrangThai_ID){
			TrangThaiDAO dao = new TrangThaiDAO();
			return dao.UpdateMaTrangThai(NewMaTrangThai,TrangThai_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenTrangThai</para>
		/// <para>Input: NewTenTrangThai,TrangThai_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenTrangThai(string NewTenTrangThai,int TrangThai_ID){
			TrangThaiDAO dao = new TrangThaiDAO();
			return dao.UpdateTenTrangThai(NewTenTrangThai,TrangThai_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMoTaTrangThai</para>
		/// <para>Input: NewMoTaTrangThai,TrangThai_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMoTaTrangThai(string NewMoTaTrangThai,int TrangThai_ID){
			TrangThaiDAO dao = new TrangThaiDAO();
			return dao.UpdateMoTaTrangThai(NewMoTaTrangThai,TrangThai_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: TrangThaiEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(TrangThaiEntity o){
			TrangThaiDAO dao = new TrangThaiDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: TrangThai_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int TrangThai_ID){
			TrangThaiDAO dao = new TrangThaiDAO();
			return dao.DeleteByID(TrangThai_ID);
		}
		#endregion

		#region Select,delete by TrangThai_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END TrangThaiWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

